import request from '@/utils/request'

/**
 * 修改歌曲 是否喜欢的状态
 * @param data
 * @returns
 */
export function setSongLike(data: any) {
  return request({
    url: `/song/setSongLike`,
    method: 'post',
    data
  })
}

/**
 * 获取歌曲的详细信息
 * @param songId
 * @returns
 */
export function getSongDetail(songId: number) {
  return request({
    url: `/song/getSongDetail/${songId}`,
    method: 'get'
  })
}

/**
 * 获取该歌曲在那些歌单中
 * @param data
 * @returns
 */
export function getSongBeToSheet(data: any) {
  return request({
    url: `/song/getSongBeToSheet`,
    method: 'post',
    data
  })
}

/**
 * 新增播放历史
 * @param data
 * @returns
 */
export function addPlayHistory(data: any) {
  return request({
    url: `/song/addPlayHistory`,
    method: 'post',
    data
  })
}
